<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="renderer" content="webkit">
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <meta name="keywords" content="广东国防教育学会">
    <meta name="description" content="广东国防教育学会">
    <title>广东国防教育学会</title>
    <link rel="shortcut icon" href="/Public/Admin/img/favicon.ico">
    <link href="/Public/Admin/css/bootstrap.min14ed.css?v=3.3.6" rel="stylesheet">
    <link href="/Public/Admin/css/font-awesome.min93e3.css?v=4.4.0" rel="stylesheet">
    <link href="/Public/Admin/css/style.min862f.css?v=4.1.0" rel="stylesheet">
    <link rel="stylesheet" href="/Public/Admin/bootstrap_validator-0.4.5/dist/css/bootstrapValidator.css"/>
    <link href="/Public/Admin/css/animate.min.css" rel="stylesheet">
    <link href="/Public/Admin/plugins/iCheck/all.css" rel="stylesheet">
    <style>
		/* *{
			color:#000;
		} */
		.btn{
		 	 padding: 5px 8px;
		 	 /* border-radius: 0px; */
			font-size:12px;
			margin-bottom:0px;
		}
		.table{
	    	width: 100%;
		}
		.table>tbody>tr>td, .table>tbody>tr>th, .table>tfoot>tr>td, .table>tfoot>tr>th, .table>thead>tr>td, .table>thead>tr>th{
			padding:0px 5px;
			/*text-align: center;*/
			vertical-align: middle!important;
		}
		.form-control{
			font-size: 12px;
		}
		#file-pretty button{
			padding: 7.5px 13px;
		}
		p{
	   		 margin: 0 0;
		}
		.pagination{
			margin:0px 0px;
		}
		.select_width{
			width:100px;
		}
		.select_no_border{
			border-right: none;
		}
	</style>
</head>
    <script>if(window.top !== window.self){ window.top.location = window.location;}</script>

<body class="gray-bg">
    <div class="middle-box text-center loginscreen  animated fadeInDown" style="margin-top:15%;">
        <div>
            <div>
                <!-- <h1 style="color:#1ab394;" class="logo-name">国防</h1> -->
                <p style="color:#1ab394;font-size:30px;font-weight:bold;" >广东国防教育学会</p>
            </div>
            <!-- <h3>管理后台</h3> -->
			<!-- <p style="color:#1ab394;font-size:30px;font-weight:bold;" >管理后台</p> -->
            <form class="m-t" role="form" method="post" id="loginForm">
                <div class="form-group">
                    <input type="text" name="username" class="form-control" placeholder="账号" >
                </div>
                <div class="form-group">
                    <input type="password" name="password" class="form-control" placeholder="密码" >
                </div>
                <button type="submit" class="btn btn-primary block full-width m-b">登 录</button>
                <!-- <p class="text-muted text-center"> <a href="login.html#"><small>忘记密码了？</small></a> | <a href="register.html">注册一个新账号</a>
                </p> -->
            </form>
            
        </div>
    </div>


<script src="/Public/Admin/js/jquery.min.js?v=2.1.4"></script>
<script src="/Public/Admin/js/bootstrap.min.js?v=3.3.6"></script>
<!-- <script src="/Public/Admin/js/content.min.js?v=1.0.0"></script> -->
<script type="text/javascript" src="/Public/Admin/bootstrap_validator-0.4.5/dist/js/bootstrapValidator.js"></script>
<script src="/Public/Admin/plugins/layer/layer.js"></script>
<script src="/Public/Admin/plugins/iCheck/icheck.min.js"></script>

<script>
//设置checkbox按钮
$('.i-check').iCheck({
	checkboxClass : "icheckbox_square-green",
	radioClass : "iradio_square-green",
});
</script>

</body>
</html>

 <script>
 	$('#loginForm').submit(function(){
 		var username = $("input[name='username']").val();
 		var password = $("input[name='password']").val();
 		if(username == ''){
 			layer.msg('账号未填写',{time:1000});
 			return false;
 		}
 		if(password == ''){
 			layer.msg('密码未填写',{time:1000});
 			return false;
 		}
 		if(username != '' && password != ''){
 			$.ajax({
 				url : '/Admin/Login/login',
 				data : {'username':username,'password':password},
 				type : 'post',
 				dataType : 'json',
 				async : false,   //取消同步，执行完之后再往下执行
 				success : function(data){
 					if(data.status == 1){
 						layer.msg(''+data.message+'',{time:1000});
 						setTimeout(function(){
 							location.href = data.url;
 						}, 2000);
 						return true;
 					}else if(data.status == 2){
 						layer.msg(''+data.message+'',{time:1000});
 						return false;
 					}
 				}
 			});
 		}
 	   return false;
 	});
 </script>